package com.newtype.meeting.client.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.extjs.gxt.ui.client.data.BaseModel;

/**
 * 登录会议报告实体
 * @author 汪恭泽
 * Jun 16, 2011 3:22:46 PM
 */
@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "false")
public class MeetingReport extends BaseModel implements Serializable {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String id;
	@Persistent
	private String meetingID;//会议ID
	@Persistent
	private String deptID;//部门ID
	@Persistent
	private String deptName;//部门名称
	@Persistent
	private String accountID;//帐号
	@Persistent
	private String fullName;//姓名
	@Persistent
	private String subject;//主题
	@Persistent
	private String content;//内容
	@Persistent
	private String htmlTAG;
	@Persistent
	private String draftTAG;
	@Persistent
	private Date submitDate;//登录时间

	public MeetingReport() {

	}

	public String getMeetingID() {
		return meetingID;
	}

	public void setMeetingID(String meetingID) {
		this.meetingID = meetingID;
	}

	public String getDeptID() {
		return deptID;
	}

	public void setDeptID(String deptID) {
		this.deptID = deptID;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getAccountID() {
		return accountID;
	}

	public void setAccountID(String accountID) {
		this.accountID = accountID;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getHtmlTAG() {
		return htmlTAG;
	}

	public void setHtmlTAG(String htmlTAG) {
		this.htmlTAG = htmlTAG;
	}

	public String getDraftTAG() {
		return draftTAG;
	}

	public void setDraftTAG(String draftTAG) {
		this.draftTAG = draftTAG;
	}

	public Date getSubmitDate() {
		return submitDate;
	}

	public void setSubmitDate(Date submitDate) {
		this.submitDate = submitDate;
	}

	public String getId() {
		return id;
	}

	public void updateProperties() {
		set("id", getId());
		set("meetingID", getMeetingID());
		set("deptID", getDeptID());
		set("deptName", getDeptName());
		set("accountID", getAccountID());
		set("fullName", getFullName());
		set("subject", getSubject());
		set("content", getContent());
		set("htmlTAG", getHtmlTAG());
		set("draftTAG", getDraftTAG());
		set("submitDate", getSubmitDate());
	}

}
